package com.jrx.anytxn.investor.timer.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "batchconfig.invester")
public class AnytxnBatchProperties {
    /**
     * 默认配置
     */
    private DefaultConfig defaultConfig = new DefaultConfig();

    /**
     * 借款配置
     */
    private DefaultConfig transferConfig = new DefaultConfig(100, 0, 8, 10000);

    /**
     * 资金源路由作业配置
     */
    private DefaultConfig fundRouteConfig = new DefaultConfig(1000, 0, 32, 50000);

    /**
     * 资金源路由通知作业配置
     */
    private DefaultConfig noticeRouteResultConfig = new DefaultConfig(1000, 0, 32, 50000);

    /**
     * 查询合作行授信结果作业配置
     */
    private DefaultConfig  queryCreditResultConfig = new DefaultConfig(1000, 0, 32, 50000);

    public DefaultConfig getDefaultConfig() {
        return defaultConfig;
    }

    public void setDefaultConfig(DefaultConfig defaultConfig) {
        this.defaultConfig = defaultConfig;
    }

    public DefaultConfig getTransferConfig() {
        return transferConfig;
    }

    public void setTransferConfig(DefaultConfig transferConfig) {
        this.transferConfig = transferConfig;
    }

    public DefaultConfig getFundRouteConfig() {
        return fundRouteConfig;
    }

    public void setFundRouteConfig(DefaultConfig fundRouteConfig) {
        this.fundRouteConfig = fundRouteConfig;
    }

    public DefaultConfig getNoticeRouteResultConfig() {
        return noticeRouteResultConfig;
    }

    public void setNoticeRouteResultConfig(DefaultConfig noticeRouteResultConfig) {
        this.noticeRouteResultConfig = noticeRouteResultConfig;
    }

    public DefaultConfig getQueryCreditResultConfig() {
        return queryCreditResultConfig;
    }

    public void setQueryCreditResultConfig(DefaultConfig queryCreditResultConfig) {
        this.queryCreditResultConfig = queryCreditResultConfig;
    }
}
